home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Technotools
/
Technotools (Chestnut CD-ROM)(1993).ISO
/
lang_c
/
lov114
/
farm.c
< prev
next >
Wrap
Text File
|
1989-02-02
|
395b
|
22 lines
char *strupr(char *str);
main(int argc, char *argv[])
{
int i;
if(argc>1 && !strcmp(strupr(argv[1]),"MACDONALD"))
printf("\nE-I-E-I-O!"); /* macdonald command line argument evokes an appropriate response */
for(i=0;i<10;i++){
farm();
cow(i);
printf(" rooting around at %d:00 in the morning",pig(i));
horse(i);
sheep(i);
}
}
farm()
{
printf("\nfarm");
}